﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace IMeiWeiWebService.Providers
{
    public class BusinessSelectItemProvider
    {
        IMeiWei.BLL.businessselectitem bll_BusinessSelectItem = new IMeiWei.BLL.businessselectitem();
        IMeiWei.BLL.businessselectdetail bll_BusinessSelectDetail = new IMeiWei.BLL.businessselectdetail();

        public List<IMeiWei.Model.businessselectitem> LoadBusinessSelectItem(string businessTypeId)
        {
            return bll_BusinessSelectItem.GetModelList("BusinessType_Id = '" + businessTypeId + "'");
        }

        public List<IMeiWei.Model.businessselectdetail> LoadBusinessSelectDetail(string businessId)
        {
            return bll_BusinessSelectDetail.GetModelList("Business_Id = '" + businessId + "'");
        }

        public List<IMeiWei.Model.businessselectdetail> LoadBusinessSelectDetail()
        {
            return bll_BusinessSelectDetail.GetModelList("1 = '1'");
        }
    }
}